package com.bw.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author 飓风微尘
 * @since 2022-05-02
 */
@Getter
@Setter
@TableName("t_area")
@ApiModel(value = "Area对象", description = "")
public class Area implements Serializable {

    private static final long serialVersionUID = 1L;
    @JsonProperty("value")
    private Integer id;
    private String code;
    @JsonProperty("label")
    private String name;

    private Integer pid;

    private Integer lft;

    private Integer rgt;

    @TableField("name_en")
    private String nameEn;

    @TableField("short_name_en")
    private String shortNameEn;

    @TableField("is_show")
    private Integer isShow;

    @TableField(exist = false)
    private List<Area> children;


}
